﻿<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Script file="EditBoxes.lua" />
  <Frame name="AOSSControlsEditBoxes" inherits="AOSSPanelTemplate">
    <Size>
      <AbsDimension x="400" y="400"/>
    </Size>
    <Anchors>
      <Anchor point="TOPLEFT" />
    </Anchors>
    <Frames>
      <SimpleHTML name="EditBoxesSimpleHTML" inherits="ControlsSimpleHTMLTemplate" file="Interface\AddOns\AddOnStudioSamples\Controls\EditBoxes.html" />

      <EditBox name="ExampleEditBox1" inherits="InputBoxTemplate" autoFocus="false">
        <Size>
          <AbsDimension x="120" y="32"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset x="40" y="-850"/>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnTextChanged>
            ExampleEditBox_TextChanged(self, true)
          </OnTextChanged>
        </Scripts>
      </EditBox>

      <EditBox name="ExampleEditBox2" autoFocus="false" hidden="false" enableMouse="true">
        <Size>
          <AbsDimension x="120" y="32"/>
        </Size>
        <Anchors>
          <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="ExampleEditBox1">
            <Offset x="30" y="0" />                          
          </Anchor>          
        </Anchors>
        <Layers>         
          <Layer level="BACKGROUND">
            <Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left">
              <Size>
                <AbsDimension x="120" y="32"/>
              </Size>
              <Anchors>
                <Anchor point="LEFT">
                  <Offset x="-10" y="0" />                                   
                </Anchor>
              </Anchors>
              <TexCoords left="0" top="0" right="0.468" bottom="1"/>
            </Texture>
            <Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right">
              <Size>
                <AbsDimension x="16" y="32"/>
              </Size>
              <Anchors>
                <Anchor point="RIGHT"/>
              </Anchors>
              <TexCoords left="0.9375" right="1.0" top="0" bottom="1.0"/>
            </Texture>            
          </Layer>
        </Layers>        
        <Scripts>
          <OnEscapePressed>
            self:ClearFocus();
          </OnEscapePressed>
          <OnEditFocusLost>
            self:HighlightText(0, 0);
          </OnEditFocusLost>
          <OnEditFocusGained>
            self:HighlightText();
          </OnEditFocusGained>
          <OnTextChanged>
            ExampleEditBox_TextChanged(self, false)
          </OnTextChanged>
        </Scripts>
        <FontString inherits="ChatFontNormal" />          
        </EditBox>
      
    </Frames>
    <Scripts>
      <OnLoad>
        AOSSControlsEditBoxes_OnLoad(self)
      </OnLoad>
    </Scripts>
  </Frame>
</Ui>